package com.hades.example.java.refactoring.after.c11.c11_2_pull_up_method.v2;

import java.util.Date;

public abstract class Customer {
    Date lastBillDate;

    void createBill(Date date) {
        double chargeAmount = chargeFor(lastBillDate, date);
        addBill(date, chargeAmount);
    }

    void addBill(Date date, double amount) {
    }

    abstract double chargeFor(Date start, Date end);
}
